package com.cqupt.utils;

import java.util.List;

public class Result<T> {

	public String getResult(List<T> list) {
		StringBuilder stringBuilder = new StringBuilder();
		for (int i=0; i<list.size(); i++) {
			String v = list.get(i) + "";
			if (list.get(i) instanceof Double && v.matches(".*\\.0")) {
				v = v.substring(0, v.lastIndexOf('.'));
			}
			stringBuilder.append(v+"\r\n");
		}
		return stringBuilder.toString();
	}

}
